<template>
  <div id="app">
    <router-view></router-view>
     <a-spin class="loading" :spinning="this.$store.state.loeding" tip="Loading...">
    </a-spin>
  </div>
</template>

<script>
import {initDynamicRoutes} from './router/index'
export default {
  name: 'App',
  created(){
   initDynamicRoutes()
  }
}
</script>

<style>
#app {
  padding: 0;
  margin: 0;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100vh;
  min-width: 960px;
}
#app .loading{
  position: fixed;
  left: 50%;
  top: 30%;
}
</style>
